package cn.zhku.edu.productservice.mapper;

import cn.zhku.edu.feign.pojo.bo.ParentProduct;
import cn.zhku.edu.feign.pojo.entry.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Administrator
 */
@Repository
public interface ProductMapper extends BaseMapper<Product> {
    int deleteByPrimaryKey(Integer gid);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer gid);

    List<ParentProduct> selectAllFilter(@Param("filter") String[] filter, @Param("tid") int tid);

    List<Product> selectAllBygname(String name);

    List<ParentProduct> selectAllShop(Integer tid);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);


}